<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>SpecialPropertiesDefault.as</title>
<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
</head>

<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">caurina</span>.<span class="ActionScriptDefault_Text">transitions</span> <span class="ActionScriptBracket/Brace">{</span>

    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span>.<span class="ActionScriptDefault_Text">filters</span>.<span class="ActionScriptDefault_Text">BitmapFilter</span>;
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span>.<span class="ActionScriptDefault_Text">filters</span>.<span class="ActionScriptDefault_Text">BlurFilter</span>;
<span class="ActionScriptComment">//    import flash.filters.GlowFilter;
</span>    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span>.<span class="ActionScriptDefault_Text">geom</span>.<span class="ActionScriptDefault_Text">ColorTransform</span>;
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">flash</span>.<span class="ActionScriptDefault_Text">media</span>.<span class="ActionScriptDefault_Text">SoundTransform</span>;

    <span class="ActionScriptASDoc">/**
     * SpecialPropertiesDefault
     * List of default special properties for the Tweener class
     * The function names are strange/inverted because it makes for easier debugging (alphabetic order). They&apos;re only for internal use (on this class) anyways.
     *
     * @author        Zeh Fernando, Nate Chatellier
     * @version        1.0.1
     * @private
     */</span>

    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">SpecialPropertiesDefault</span> <span class="ActionScriptBracket/Brace">{</span>
    
        <span class="ActionScriptASDoc">/**
         * There&apos;s no constructor.
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">SpecialPropertiesDefault</span> <span class="ActionScriptBracket/Brace">()</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScripttrace">trace</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;SpecialProperties is a static class and should not be instantiated.&quot;</span><span class="ActionScriptBracket/Brace">)</span>
        <span class="ActionScriptBracket/Brace">}</span>
    
        <span class="ActionScriptASDoc">/**
         * Registers all the special properties to the Tweener class, so the Tweener knows what to do with them.
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">init</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>

            <span class="ActionScriptComment">// Normal properties
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_frame&quot;</span>, <span class="ActionScriptDefault_Text">frame_get</span>, <span class="ActionScriptDefault_Text">frame_set</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_sound_volume&quot;</span>, <span class="ActionScriptDefault_Text">_sound_volume_get</span>, <span class="ActionScriptDefault_Text">_sound_volume_set</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_sound_pan&quot;</span>, <span class="ActionScriptDefault_Text">_sound_pan_get</span>, <span class="ActionScriptDefault_Text">_sound_pan_set</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_ra&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;redMultiplier&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_rb&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;redOffset&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_ga&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;greenMultiplier&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_gb&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;greenOffset&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_ba&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;blueMultiplier&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_bb&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;blueOffset&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_aa&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;alphaMultiplier&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color_ab&quot;</span>, <span class="ActionScriptDefault_Text">_color_property_get</span>, <span class="ActionScriptDefault_Text">_color_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;alphaOffset&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_autoAlpha&quot;</span>, <span class="ActionScriptDefault_Text">_autoAlpha_get</span>, <span class="ActionScriptDefault_Text">_autoAlpha_set</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptComment">// Normal splitter properties
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialPropertySplitter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_color&quot;</span>, <span class="ActionScriptDefault_Text">_color_splitter</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialPropertySplitter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_colorTransform&quot;</span>, <span class="ActionScriptDefault_Text">_colorTransform_splitter</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptComment">// Scale splitter properties
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialPropertySplitter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_scale&quot;</span>, <span class="ActionScriptDefault_Text">_scale_splitter</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptComment">// Filter tweening properties - BlurFilter
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_blur_blurX&quot;</span>, <span class="ActionScriptDefault_Text">_filter_property_get</span>, <span class="ActionScriptDefault_Text">_filter_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">BlurFilter</span>, <span class="ActionScriptString">&quot;blurX&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_blur_blurY&quot;</span>, <span class="ActionScriptDefault_Text">_filter_property_get</span>, <span class="ActionScriptDefault_Text">_filter_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">BlurFilter</span>, <span class="ActionScriptString">&quot;blurY&quot;</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialProperty</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_blur_quality&quot;</span>, <span class="ActionScriptDefault_Text">_filter_property_get</span>, <span class="ActionScriptDefault_Text">_filter_property_set</span>, <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">BlurFilter</span>, <span class="ActionScriptString">&quot;quality&quot;</span><span class="ActionScriptBracket/Brace">])</span>;

            <span class="ActionScriptComment">// Filter tweening splitter properties
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialPropertySplitter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_filter&quot;</span>, <span class="ActionScriptDefault_Text">_filter_splitter</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptComment">// Bezier modifiers
</span>            <span class="ActionScriptDefault_Text">Tweener</span>.<span class="ActionScriptDefault_Text">registerSpecialPropertyModifier</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;_bezier&quot;</span>, <span class="ActionScriptDefault_Text">_bezier_modifier</span>, <span class="ActionScriptDefault_Text">_bezier_get</span><span class="ActionScriptBracket/Brace">)</span>;

        <span class="ActionScriptBracket/Brace">}</span>
    

        <span class="ActionScriptComment">// ==================================================================================================================================
</span>        <span class="ActionScriptComment">// PROPERTY GROUPING/SPLITTING functions --------------------------------------------------------------------------------------------
</span>

        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _color
</span>
        <span class="ActionScriptASDoc">/**
         * Splits the _color parameter into specific color variables
         *
         * @param        p_value                Number        The original _color value
         * @return                            Array        An array containing the .name and .value of all new properties
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_color_splitter</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:*</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">nArray</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// No parameter passed, so just resets the color
</span>                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ra&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_rb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ga&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_gb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ba&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_bb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// A color tinting is passed, so converts it to the object values
</span>                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ra&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_rb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">AuxFunctions</span>.<span class="ActionScriptDefault_Text">numberToR</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ga&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_gb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">AuxFunctions</span>.<span class="ActionScriptDefault_Text">numberToG</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ba&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_bb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">AuxFunctions</span>.<span class="ActionScriptDefault_Text">numberToB</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)})</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">nArray</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _colorTransform
</span>
        <span class="ActionScriptASDoc">/**
         * Splits the _colorTransform parameter into specific color variables
         *
         * @param        p_value                Number        The original _colorTransform value
         * @return                            Array        An array containing the .name and .value of all new properties
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_colorTransform_splitter</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:*</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">nArray</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// No parameter passed, so just resets the color
</span>                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ra&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_rb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ga&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_gb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ba&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>1<span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_bb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span>0<span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// A color tinting is passed, so converts it to the object values
</span>                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ra</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ra&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ra</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">rb</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_rb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">rb</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ga</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ba&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ba</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">gb</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_bb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">bb</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ba</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ga&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ga</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">bb</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_gb&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">gb</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">aa</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_aa&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">aa</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ab</span> <span class="ActionScriptOperator">!=</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_color_ab&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">p_value</span>.<span class="ActionScriptDefault_Text">ab</span><span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">nArray</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// scale
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_scale_splitter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">nArray</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;scaleX&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;scaleY&quot;</span>, <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">nArray</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// filters
</span>
        <span class="ActionScriptASDoc">/**
         * Splits the _filter, _blur, etc parameter into specific filter variables
         *
         * @param        p_value                BitmapFilter    A BitmapFilter instance
         * @return                            Array            An array containing the .name and .value of all new properties
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_filter_splitter</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">BitmapFilter</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">nArray</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span> <span class="ActionScriptReserved">is</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_blur_blurX&quot;</span>,        <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)</span>.<span class="ActionScriptDefault_Text">blurX</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_blur_blurY&quot;</span>,        <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)</span>.<span class="ActionScriptDefault_Text">blurY</span><span class="ActionScriptBracket/Brace">})</span>;
                <span class="ActionScriptDefault_Text">nArray</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptString">&quot;_blur_quality&quot;</span>,        <span class="ActionScriptDefault_Text">value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">)</span>.<span class="ActionScriptDefault_Text">quality</span><span class="ActionScriptBracket/Brace">})</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// ?
</span>                <span class="ActionScripttrace">trace</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptString">&quot;??&quot;</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">nArray</span>;
        <span class="ActionScriptBracket/Brace">}</span>

        <span class="ActionScriptComment">// ==================================================================================================================================
</span>        <span class="ActionScriptComment">// NORMAL SPECIAL PROPERTY functions ------------------------------------------------------------------------------------------------
</span>

        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _frame
</span>    
        <span class="ActionScriptASDoc">/**
         * Returns the current frame number from the movieclip timeline
         *
         * @param        p_obj                Object        MovieClip object
         * @return                            Number        The current frame
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">frame_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">currentFrame</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
        <span class="ActionScriptASDoc">/**
         * Sets the timeline frame
         *
         * @param        p_obj                Object        MovieClip object
         * @param        p_value                Number        New frame number
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">frame_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">gotoAndStop</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Math</span>.<span class="ActionScriptDefault_Text">round</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptBracket/Brace">))</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
        
        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _sound_volume
</span>    
        <span class="ActionScriptASDoc">/**
         * Returns the current sound volume
         *
         * @param        p_obj                Object        Sound object
         * @return                            Number        The current volume
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_sound_volume_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span>.<span class="ActionScriptDefault_Text">volume</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
        <span class="ActionScriptASDoc">/**
         * Sets the sound volume
         *
         * @param        p_obj                Object        Sound object
         * @param        p_value                Number        New volume
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_sound_volume_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">sndTransform</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">SoundTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span>;
            <span class="ActionScriptDefault_Text">sndTransform</span>.<span class="ActionScriptDefault_Text">volume</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">sndTransform</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
    
        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _sound_pan
</span>    
        <span class="ActionScriptASDoc">/**
         * Returns the current sound pan
         *
         * @param        p_obj                Object        Sound object
         * @return                            Number        The current pan
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_sound_pan_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span>.<span class="ActionScriptDefault_Text">pan</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
        <span class="ActionScriptASDoc">/**
         * Sets the sound volume
         *
         * @param        p_obj                Object        Sound object
         * @param        p_value                Number        New pan
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_sound_pan_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">sndTransform</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">SoundTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span>;
            <span class="ActionScriptDefault_Text">sndTransform</span>.<span class="ActionScriptDefault_Text">pan</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">soundTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">sndTransform</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _color_*
</span>
        <span class="ActionScriptASDoc">/**
         * _color_*
         * Generic function for the ra/rb/ga/gb/ba/bb/aa/ab components of the colorTransform object
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_color_property_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">transform</span>.<span class="ActionScriptDefault_Text">colorTransform</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]]</span>;
        <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_color_property_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">tf</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">ColorTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">transform</span>.<span class="ActionScriptDefault_Text">colorTransform</span>;
            <span class="ActionScriptDefault_Text">tf</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]]</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">transform</span>.<span class="ActionScriptDefault_Text">colorTransform</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">tf</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _autoAlpha
</span>    
        <span class="ActionScriptASDoc">/**
         * Returns the current alpha
         *
         * @param        p_obj                Object        MovieClip or Textfield object
         * @return                            Number        The current alpha
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_autoAlpha_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">alpha</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    
        <span class="ActionScriptASDoc">/**
         * Sets the current autoAlpha
         *
         * @param        p_obj                Object        MovieClip or Textfield object
         * @param        p_value                Number        New alpha
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_autoAlpha_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">alpha</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">visible</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span> <span class="ActionScriptOperator">&gt;</span> 0;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// filters
</span>
        <span class="ActionScriptASDoc">/**
         * (filters)
         * Generic function for the properties of filter objects
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_filter_property_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">f</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">filters</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">uint</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">filterClass</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>1<span class="ActionScriptBracket/Brace">]</span>;
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">f</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">f</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptReserved">is</span> <span class="ActionScriptDefault_Text">BlurFilter</span> <span class="ActionScriptOperator">&amp;&amp;</span> <span class="ActionScriptDefault_Text">filterClass</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptReserved">return</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">f</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">][</span><span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptBracket/Brace">])</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            
            <span class="ActionScriptComment">// No value found for this property - no filter instance found using this class!
</span>            <span class="ActionScriptComment">// Must return default desired values
</span>            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">defaultValues</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>;
            <span class="ActionScriptReserved">switch</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">filterClass</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">case</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptOperator">:</span>
                    <span class="ActionScriptDefault_Text">defaultValues</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">blurX</span><span class="ActionScriptOperator">:</span>0, <span class="ActionScriptDefault_Text">blurY</span><span class="ActionScriptOperator">:</span>0, <span class="ActionScriptDefault_Text">quality</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">NaN</span><span class="ActionScriptBracket/Brace">}</span>;
                    <span class="ActionScriptReserved">break</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptComment">// When returning NaN, the Tweener engine sets the starting value as being the same as the final value
</span>            <span class="ActionScriptComment">// When returning null, the Tweener engine doesn&apos;t tween it at all, just setting it to the final value
</span>            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">defaultValues</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptBracket/Brace">]</span>;
        <span class="ActionScriptBracket/Brace">}</span>

        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_filter_property_set</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_value</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span> <span class="ActionScriptReserved">void</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">f</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">filters</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">uint</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">filterClass</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_parameters</span><span class="ActionScriptBracket/Brace">[</span>1<span class="ActionScriptBracket/Brace">]</span>;
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">f</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">f</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptReserved">is</span> <span class="ActionScriptDefault_Text">BlurFilter</span> <span class="ActionScriptOperator">&amp;&amp;</span> <span class="ActionScriptDefault_Text">filterClass</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptDefault_Text">f</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">][</span><span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
                    <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">filters</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">f</span>;
                    <span class="ActionScriptReserved">return</span>;
                <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptBracket/Brace">}</span>

            <span class="ActionScriptComment">// The correct filter class wasn&apos;t found - create a new one
</span>            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">f</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">null</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">f</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">fi</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">BitmapFilter</span>;
            <span class="ActionScriptReserved">switch</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">filterClass</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">case</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptOperator">:</span>
                    <span class="ActionScriptDefault_Text">fi</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">BlurFilter</span><span class="ActionScriptBracket/Brace">(</span>0, 0<span class="ActionScriptBracket/Brace">)</span>;
                    <span class="ActionScriptReserved">break</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptDefault_Text">fi</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">propertyName</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_value</span>;
            <span class="ActionScriptDefault_Text">f</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">fi</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">filters</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">f</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ==================================================================================================================================
</span>        <span class="ActionScriptComment">// SPECIAL PROPERTY MODIFIER functions ----------------------------------------------------------------------------------------------
</span>

        <span class="ActionScriptComment">// ----------------------------------------------------------------------------------------------------------------------------------
</span>        <span class="ActionScriptComment">// _bezier
</span>
        <span class="ActionScriptASDoc">/**
         * Given the parameter object passed to this special property, return an array listing the properties that should be modified, and their parameters
         *
         * @param        p_obj                Object        Parameter passed to this property
         * @return                            Array        Array listing name and parameter of each property
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_bezier_modifier</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptOperator">:*</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">mList</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[]</span>; <span class="ActionScriptComment">// List of properties to be modified
</span>            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">pList</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>; <span class="ActionScriptComment">// List of parameters passed, normalized as an array
</span>            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span> <span class="ActionScriptReserved">is</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// Complex
</span>                <span class="ActionScriptDefault_Text">pList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">pList</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptBracket/Brace">]</span>;
            <span class="ActionScriptBracket/Brace">}</span>

            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">uint</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">{}</span>; <span class="ActionScriptComment">// Object describing each property name and parameter
</span>
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">pList</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">istr</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptDefault_Text">pList</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">])</span> <span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptReserved">undefined</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[]</span>;
                    <span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptBracket/Brace">]</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">pList</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">][</span><span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptBracket/Brace">])</span>;
                <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">istr</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">mList</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">({</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">istr</span>, <span class="ActionScriptDefault_Text">parameters</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">mListObj</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">istr</span><span class="ActionScriptBracket/Brace">]})</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">mList</span>;
        <span class="ActionScriptBracket/Brace">}</span>

        <span class="ActionScriptASDoc">/**
         * Given tweening specifications (beging, end, t), applies the property parameter to it, returning new t
         *
         * @param        b                    Number        Beginning value of the property
         * @param        e                    Number        Ending (desired) value of the property
         * @param        t                    Number        Current t of this tweening (0-1), after applying the easing equation
         * @param        p                    Array        Array of parameters passed to this specific property
         * @return                            Number        New t, with the p parameters applied to it
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">_bezier_get</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">b</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">e</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">t</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptComment">// This is based on Robert Penner&apos;s code
</span>            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span>.<span class="ActionScriptDefault_Text">length</span> <span class="ActionScriptOperator">==</span> 1<span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// Simple curve with just one bezier control point
</span>                <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">b</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">t</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span>2<span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span>1<span class="ActionScriptOperator">-</span><span class="ActionScriptDefault_Text">t</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">-</span><span class="ActionScriptDefault_Text">b</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">t</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">e</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptDefault_Text">b</span><span class="ActionScriptBracket/Brace">))</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// Array of bezier control points, must find the point between each pair of bezier points
</span>                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">uint</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">Math</span>.<span class="ActionScriptDefault_Text">floor</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">t</span> <span class="ActionScriptOperator">*</span> <span class="ActionScriptDefault_Text">p</span>.<span class="ActionScriptDefault_Text">length</span><span class="ActionScriptBracket/Brace">)</span>; <span class="ActionScriptComment">// Position on the bezier list
</span>                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">it</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">t</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ip</span> <span class="ActionScriptOperator">*</span> <span class="ActionScriptBracket/Brace">(</span>1 <span class="ActionScriptOperator">/</span> <span class="ActionScriptDefault_Text">p</span>.<span class="ActionScriptDefault_Text">length</span><span class="ActionScriptBracket/Brace">)))</span> <span class="ActionScriptOperator">*</span> <span class="ActionScriptDefault_Text">p</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptComment">// t inside this ip
</span>                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">p1</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p2</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ip</span> <span class="ActionScriptOperator">==</span> 0<span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptComment">// First part: belongs to the first control point, find second midpoint
</span>                    <span class="ActionScriptDefault_Text">p1</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">b</span>;
                    <span class="ActionScriptDefault_Text">p2</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span>0<span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span>1<span class="ActionScriptBracket/Brace">])</span><span class="ActionScriptOperator">/</span>2;
                <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">ip</span> <span class="ActionScriptOperator">==</span> <span class="ActionScriptDefault_Text">p</span>.<span class="ActionScriptDefault_Text">length</span> <span class="ActionScriptOperator">-</span> 1<span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptComment">// Last part: belongs to the last control point, find first midpoint
</span>                    <span class="ActionScriptDefault_Text">p1</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptOperator">-</span>1<span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptBracket/Brace">])</span><span class="ActionScriptOperator">/</span>2;
                    <span class="ActionScriptDefault_Text">p2</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">e</span>;
                <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptReserved">else</span> <span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptComment">// Any middle part: find both midpoints
</span>                    <span class="ActionScriptDefault_Text">p1</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptOperator">-</span>1<span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptBracket/Brace">])</span><span class="ActionScriptOperator">/</span>2;
                    <span class="ActionScriptDefault_Text">p2</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptOperator">+</span>1<span class="ActionScriptBracket/Brace">])</span><span class="ActionScriptOperator">/</span>2;
                <span class="ActionScriptBracket/Brace">}</span>
                <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p1</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">it</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span>2<span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span>1<span class="ActionScriptOperator">-</span><span class="ActionScriptDefault_Text">it</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">ip</span><span class="ActionScriptBracket/Brace">]</span><span class="ActionScriptOperator">-</span><span class="ActionScriptDefault_Text">p1</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">it</span><span class="ActionScriptOperator">*</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p2</span> <span class="ActionScriptOperator">-</span> <span class="ActionScriptDefault_Text">p1</span><span class="ActionScriptBracket/Brace">))</span>;
            <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptBracket/Brace">}</span>

    <span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace">}</span>
</pre></body>
</html>
